package com.tianqu.tms.dao;

import com.tianqu.tms.core.exception.TmsDaoException;
import com.tianqu.tms.dto.MarketCarServiceDto;

/**
 * @author mufeiyu
 * 库存车辆业务表
 */
public interface MarketCarServiceDao {
	/**
	 * 更新库存车辆业务表
	 * @param dto
	 * @throws TmsDaoException
	 */
	public void updateCarServiceInfo(MarketCarServiceDto dto)throws TmsDaoException;

	/**
	 * 更新库存车辆业务表
	 * @param dto
	 * @throws TmsDaoException
	 */
	 void updateCarServiceInfoNew(MarketCarServiceDto dto)throws TmsDaoException;
	/**
	 * 更新库存车辆业务表
	 * @param dto
	 * @throws TmsDaoException
	 */
	public void updateCarServiceAllInfo(MarketCarServiceDto dto)throws TmsDaoException;
	
	/**
	 * 库存车辆业务表是否存在符合条件的数据
	 * @return
	 * @throws TmsDaoException
	 */
	public boolean isExistCarServiceInfoBySerial(String serial)throws TmsDaoException;
	
	
	/**
	 * 插入库存车辆业务表
	 * @param dto
	 * @throws TmsDaoException
	 */
	public void insertCarServiceInfo(MarketCarServiceDto dto)throws TmsDaoException;
	
	/**
	 * 查询库存车辆业务表
	 * @param dto
	 * @throws TmsDaoException
	 */
	public MarketCarServiceDto findCarServiceInfoBySerial(String serial)throws TmsDaoException;
	/**
	 * 插入库存车辆业务表
	 * @param dto
	 * @throws TmsDaoException
	 */
	public void insertCarServiceIsValid(MarketCarServiceDto dto)throws TmsDaoException;
	/**
	 * 更新库存车辆业务表
	 * @param dto
	 * @throws TmsDaoException
	 */
	public void updateCarServicePrice(MarketCarServiceDto dto)throws TmsDaoException;
	
	public void updateIsRebate(int isRebate,String serial)throws TmsDaoException;
}
